﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Zoo.Cat.Application.Polls;
using Zoo.Cat.Web.Framework;
using Zoo.Cat.Application.Authentication;
using Zoo.Cat.Application.Jobseekers;
using Zoo.Cat.Application.Links;
using Zoo.Cat.Domain.Entities.Links;

namespace Zoo.Cat.Web.Controllers {
    public class HomeController : Controller
    {

        #region Fields
        private readonly IWorkContext _workContext;
        private readonly ILinkService _linkService;
        #endregion

        public HomeController( IWorkContext workContext,ILinkService linkService) {
            _workContext = workContext;
            _linkService = linkService;
        }
        public ActionResult Index() {
            ViewBag.Title1 = _workContext.CurrentUser.Email;
            var links = _linkService.GetLinkAll();
            return View(links);
        }

    }
}
